package com.xt.LibaryDeskManager.dto;

/**
 * @author 童归权
 * @version 1.0 2021/2/7
 */
public class SeatDto {
    private String seatNo;
    private Integer color;
    private String colorName;
    private Integer statue;
    private String statueName;
    private Integer nowstatue;
    private String nowstatueName;
    private String teacherNo;
    private String teacherName;
    private String teacherPhone;

    public SeatDto() {
    }

    public Integer getNowstatue() {
        return nowstatue;
    }

    public void setNowstatue(Integer nowstatue) {
        this.nowstatue = nowstatue;
        switch (nowstatue){
            case 0:
                nowstatueName="空闲";
                break;
            case 1:
                nowstatueName="已被预约（上午）";
                break;
            case 2:
                nowstatueName="已被预约（下午）";
                break;
            case 3:
                nowstatueName="全天被预约";
                break;
            case 4:
                nowstatueName="正在维修";
                break;
        }
    }

    public String getNowstatueName() {
        return nowstatueName;
    }

    public void setNowstatueName(String nowstatueName) {
        this.nowstatueName = nowstatueName;
    }

    public String getTeacherNo() {
        return teacherNo;
    }

    public void setTeacherNo(String teacherNo) {
        this.teacherNo = teacherNo;
    }

    public String getSeatNo() {
        return seatNo;
    }

    public void setSeatNo(String seatNo) {
        this.seatNo = seatNo;
    }

    public Integer getColor() {
        return color;
    }

    public void setColor(Integer color) {
        this.color = color;
        switch (color){
            case 1:
                colorName="橙色";
                break;
            case 2:
                colorName="蓝色";
                break;
            case 3:
                colorName="绿色";
                break;
            case 4:
                colorName="粉色";
                break;
        }
    }

    public String getColorName() {
        return colorName;
    }

    public void setColorName(String colorName) {
        this.colorName = colorName;
    }

    public Integer getStatue() {
        return statue;
    }

    public void setStatue(Integer statue) {
        this.statue = statue;
        switch (statue){
            case 0:
                statueName="空闲";
                break;
            case 1:
                statueName="已被预约（上午）";
                break;
            case 2:
                statueName="已被预约（下午）";
                break;
            case 3:
                statueName="全天被预约";
                break;
            case 4:
                statueName="正在维修";
                break;
        }
    }

    public String getStatueName() {
        return statueName;
    }

    public void setStatueName(String statueName) {
        this.statueName = statueName;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getTeacherPhone() {
        return teacherPhone;
    }

    public void setTeacherPhone(String teacherPhone) {
        this.teacherPhone = teacherPhone;
    }



}
